CreateComboBoxForm
Creates a combo box / dropdown list with the specified combo box / dropdown list properties.
Syntax
expression.CreateComboBoxForm(oFormPr);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
oFormPr | Required | ComboBoxFormPr | Combo box / dropdown list properties. |
Returns
Example
This example creates a combo box form with the common and specific combo box form properties.
let doc = Api.GetDocument();
let comboBoxForm = Api.CreateComboBoxForm({"key": "Personal information", "tip": "Choose your country", "required": true, "placeholder": "Country", "editable": false, "autoFit": false, "items": ["Latvia", "USA", "UK"]});
let paragraph = doc.GetElement(0);
paragraph.AddElement(comboBoxForm);